/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: cutString
 * Author:   wanglm
 * Date:     2020/06/02 14:40
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.app.bhca.cutP10Tool;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author wanglm
 * @create 2020/06/02
 * @since 1.0.0
 */
public class cutString {
    public cutString(){

    }

    public String cStr(String oldp10String){
        String newp10String = "";

        newp10String = oldp10String.replaceAll("-----BEGIN CERTIFICATE REQUEST-----","");
        newp10String = newp10String.replaceAll("-----END CERTIFICATE REQUEST-----","");

        newp10String = newp10String.replaceAll("\n", "");
        newp10String = newp10String.replaceAll(" ", "");
        newp10String = newp10String.replaceAll("\t", "");
        newp10String = newp10String.replaceAll("\r", "");
        newp10String = newp10String.trim();

        return newp10String;
    }
}
